<tr>
  <td class="text-center">
    <div class="checkbox-selected"><%= check_box_tag "hotels_ids[]", hotel.id %></div>
  </td>
  <td><%= hotel.primary_picture.image_url.to_s %></td>
  <td class="text-center"><%= hotel.area_id unless hotel.area.blank? %></td>
  <td class="text-center"><span class="<%= (hotel.is_published == false) ? raw('label label-important') : raw('label label-success') %>"><%= (hotel.is_published == true) ? raw('Published') : raw('Not Published') %></span></td>
  <td class="text-center"><span class="<%= (hotel.is_on_promoted == false) ? raw('label label-important') : raw('label label-success') %>"><%= (hotel.is_on_promoted == true) ? raw('Promoted') : raw('Not Promoted') %></span></td>
  <td class="text-center"><span class="<%= (hotel.is_recomended == false) ? raw('label label-important') : raw('label label-success') %>"><%= (hotel.is_recomended == true) ? raw('Recomended') : raw('Not Recomended') %></span></td>
  <td class="text-center"><%= link_to "Facilities", {controller: "hotels", action: "facility_list", hotel_id: hotel.id}, remote: true %></td>
  <td class="text-center"><%= link_to "Rooms", hotel_room_types_path({ hid: hotel.id }), remote: true %></td>
  <td class="text-center">
    <%= link_to 'Edit', edit_hotel_path(hotel), remote: true %> | 
    <%= link_to 'Delete', hotel, method: :delete, remote: true, data: { confirm: 'Are you sure?' } %>
  </td>
</tr>